// 动态路由

export default (function() {
  const context = require.context('./dynamic', true, /\.js$/)
  const routes = []
  context.keys().forEach(file => {
    routes.push(...context(file).default)
  })
  return routes
})()
